function wp_maintenance_mode() {
if (!current_user_can(‘edit_themes’) || !is_user_logged_in()) {
wp_die(‘
.
’);
}
}
add_action(‘get_header’, ‘wp_maintenance_mode’);
Warning: Cannot modify header information - headers already sent by (output started at /www/doc/www.vysokyvrch.sk/www/wp-content/themes/et-agency/functions.php:1) in /www/doc/www.vysokyvrch.sk/www/wp-includes/rest-api/class-wp-rest-server.php on line 1673
Warning: Cannot modify header information - headers already sent by (output started at /www/doc/www.vysokyvrch.sk/www/wp-content/themes/et-agency/functions.php:1) in /www/doc/www.vysokyvrch.sk/www/wp-includes/rest-api/class-wp-rest-server.php on line 1673
Warning: Cannot modify header information - headers already sent by (output started at /www/doc/www.vysokyvrch.sk/www/wp-content/themes/et-agency/functions.php:1) in /www/doc/www.vysokyvrch.sk/www/wp-includes/rest-api/class-wp-rest-server.php on line 1673
Warning: Cannot modify header information - headers already sent by (output started at /www/doc/www.vysokyvrch.sk/www/wp-content/themes/et-agency/functions.php:1) in /www/doc/www.vysokyvrch.sk/www/wp-includes/rest-api/class-wp-rest-server.php on line 1673
Warning: Cannot modify header information - headers already sent by (output started at /www/doc/www.vysokyvrch.sk/www/wp-content/themes/et-agency/functions.php:1) in /www/doc/www.vysokyvrch.sk/www/wp-includes/rest-api/class-wp-rest-server.php on line 1673
Warning: Cannot modify header information - headers already sent by (output started at /www/doc/www.vysokyvrch.sk/www/wp-content/themes/et-agency/functions.php:1) in /www/doc/www.vysokyvrch.sk/www/wp-includes/rest-api/class-wp-rest-server.php on line 1673
{"code":"rest_no_route","message":"Nebola n\u00e1jden\u00e1 \u017eiadna cesta zhoduj\u00faca sa s URL a po\u017eadovanou met\u00f3dou.","data":{"status":404}}